<?php
include ("../model/connect.php");
include ("../model/Staff/class-trainningclass.php");

$trnpid = $_POST['trnpid'];
$classname = $_POST['classname'];
$classid = $_POST['classid'];
$staffid = $_POST['staffid'];
$page = $_POST['page'];

$trclass = new TrainningClass();
    $trclass->addClass($classid,$trnpid,$staffid,$classname);
    mysql_close($conn);
    header("location:http:/educational/staff-index.php?p=staff-list-trainning-class&trnpid={$trnpid}&page={$page}");
?>